<!DOCTYPE HTML>
<html lang="zh-CN" >
<head>
<title>Weibo Toy beta 0.1</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link rel="shortcut icon" href="/favicon.ico" >
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js" type="text/javascript"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js" type="text/javascript"></script>
<?php echo Asset::js('bootstrap.min.js'); ?>
<?php echo Asset::js('zoom/artZoom.js'); ?>
<?php echo Asset::js('bootstrap-modal.js'); ?>
<?php echo Asset::js('bootstrap-button.js'); ?>
<?php echo Asset::js('jquery-ui-timepicker-addon.js'); ?>
<?php echo Asset::js('ajaxfileupload.js'); ?>

<?php echo Asset::css('bootstrap.min.css'); ?>
<?php echo Asset::css('jquery-ui-1.8.16.custom.css');?>
<link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/ui-lightness/jquery-ui.css" type="text/css" media="all" />
<script>
 $(function() {
	if(!$.support.placeholder) { 
		var active = document.activeElement;
		$(':text').focus(function () {
			if ($(this).attr('placeholder') != '' && $(this).val() == $(this).attr('placeholder')) {
				$(this).val('').removeClass('hasPlaceholder');
			}
		}).blur(function () {
			if ($(this).attr('placeholder') != '' && ($(this).val() == '' || $(this).val() == $(this).attr('placeholder'))) {
				$(this).val($(this).attr('placeholder')).addClass('hasPlaceholder');
			}
		});
		$(':text').blur();

		$(':password').focus(function () {
			if ($(this).attr('placeholder') != '' && $(this).val() == $(this).attr('placeholder')) {
				$(this).val('').removeClass('hasPlaceholder');
			}
		}).blur(function () {
			if ($(this).attr('placeholder') != '' && ($(this).val() == '' || $(this).val() == $(this).attr('placeholder'))) {
				$(this).val($(this).attr('placeholder')).addClass('hasPlaceholder');
			}
		});
		$(':password').blur();
		$(active).focus();
		$('form').submit(function () {
			$(this).find('.hasPlaceholder').each(function() { $(this).val(''); });
		});
	}
});
</script>
</head>
<body>
<div class="navbar container" style='margin-top:10px;'>
  <div class="navbar-inner">
    <div class="container">
		<a href='/' class='brand'>WeiboNian.com</a>
		<ul class='nav'>
			<?php foreach ($nav as $k => $v) { ?>
			<?php echo "<li><a href='{$v['url']}'>{$v['cname']}</a></li>"?>
			<?php }?>
		</ul>

		<ul class='nav pull-right'>
		<li><a href='/logout'>登出</a></li>
		</ul>
    </div>
  </div>
</div>
<div class='container'>
<?php echo $content;?>	
<div>
</body>
</html>
